{include file="kuerp/common/menu" /}
<div class="panel panel-default panel-intro">
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">

                    <script type="text/html" id="thisToolbar">
                        <div class="layui-btn-container">
                           <button class="layui-btn layui-icon-btn layui-btn-sm layui-bg-cyan" lay-event="refresh"><i class="layui-icon">&#xe669;</i> {:__('Refresh')}</button>
                        </div>
                    </script>

                    <form class="layui-form layui-search" id="layui-search" role="form">
                        <div class="layui-input-inline">
                            <input type="text" name="updatetime" id="updatetime" autocomplete="off" placeholder="{:__('最后业务日期')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline" style="min-width: 182px;">
                            <input type="text" name="serial" id="serial" autocomplete="off" placeholder="{:__('请输入序列号')}" class="layui-input">
                            <!-- <div id="serial" class="xm-select-demo"></div> -->
                        </div>
                        <div class="layui-input-inline" style="min-width: 182px;">
                            <input type="text" name="remark" id="remark" autocomplete="off" placeholder="{:__('请输入锁内码')}" class="layui-input">
                        </div>
                        <div class="layui-input-inline" style="min-width: 182px;">
                            <div id="goods" class="xm-select-demo"></div>
                        </div>
                        <div class="layui-input-inline">
                            <select name="stores_id" id="stores_id" class="layui-input">
                                <option value="">{:__('请选择仓库')}</option>
                                {foreach name="storesList" item="vo"}
                                <option value="{$vo.id}" >{$vo.name}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="status" id="status" class="layui-input">
                                <option value="">{:__('请选择类型')}</option>
                                {foreach name="statusList" item="vo"}
                                <option value="{$key}" >{$vo}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="store_status" id="store_status" class="layui-input">
                                <option value="">{:__('请选择在库状态')}</option>
                                {foreach name="storeStatusList" item="vo"}
                                <option value="{$key}" >{$vo}</option>
                                {/foreach}
                            </select>
                        </div>
                        <div class="layui-input-inline " style="width: 90px">
                            <button class="layui-btn layui-btn-sm btn-refresh" type="button" id="search" data-type="reload">
                                <i class="layui-icon"></i> {:__('Search')}
                            </button>
                        </div>
                    </form>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           width="100%" lay-filter="table">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script type="text/html" id="toolDemo">
    {{# if(d.store_status < 2 ){ }}
    <a class="layui-btn layui-btn-xs {:$auth->check('kuerp/goods_serial_status/outbound') ?'':'hide'}" lay-event="outbound">出库</a>
    {{# } }}
</script>